package com.ruoyi.system.service;

import java.util.List;
import com.ruoyi.system.domain.Department;

/**
 * 分组Service接口
 *
 * @author ruoyi
 * @date 2021-04-08
 */
public interface IDepartmentService
{
    /**
     * 查询分组
     *
     * @param id 分组ID
     * @return 分组
     */
    public Department selectDepartmentById(Long id);

    /**
     * 查询分组
     *
     * @param department 分组
     * @return 分组
     */
    public Department selectDepartment(Department department);

    /**
     * 查询分组列表
     *
     * @param department 分组
     * @return 分组集合
     */
    public List<Department> selectDepartmentList(Department department);

    /**
     * 新增分组
     *
     * @param department 分组
     * @return 结果
     */
    public int insertDepartment(Department department);

    /**
     * 修改分组
     *
     * @param department 分组
     * @return 结果
     */
    public int updateDepartment(Department department);

    /**
     * 批量删除分组
     *
     * @param ids 需要删除的分组ID
     * @return 结果
     */
    public int deleteDepartmentByIds(Long[] ids);

    /**
     * 删除分组信息
     *
     * @param id 分组ID
     * @return 结果
     */
    public int deleteDepartmentById(Long id);
}
